package com.weizhu.swufer.testprovider.demo;

import com.weizhu.swufer.api.demo.DemoService;
import com.weizhu.swufer.core.annotation.SwuferLimit;
import com.weizhu.swufer.core.annotation.SwuferService;

import java.util.Map;

@SwuferService(token = "123456")
public class DemoServiceImpl implements DemoService {

    @Override
    public String hello(String name)  {

        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello from " + name;
    }

    @Override
    public String testNoArgMethod() {
        return "no args method";
    }

    @Override
    public String testMultiArgs(String name, Map<String, Object> map) {
        return name + map;
    }
}
